package com.actionpals.components.core
{
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;
	
	public class UITextComponent extends UIComponent
	{
		protected var _textFormat:TextFormat;
		protected var _disabledTextFormat:TextFormat;
		protected var _defaultTextFormat:TextFormat;
		protected var _defaultDisabledTextFormat:TextFormat;
		protected var _embedFonts:Boolean = false;
		protected var _paddingLeft:Number = 0;
		protected var _paddingRight:Number = 0;
		
		public function UITextComponent()
		{
			super();
		}
		
		public function get textFormat():TextFormat
		{
			return _textFormat;
		}
		public function set textFormat( value:TextFormat ):void
		{
			_textFormat = value;
		}
		
		public function get disabledTextFormat():TextFormat
		{
			return _disabledTextFormat;
		}
		public function set disabledTextFormat( value:TextFormat ):void
		{
			_disabledTextFormat = value;
		}
		
		public function get defaultTextFormat():TextFormat
		{
			return _defaultTextFormat;
		}
		public function set defaultTextFormat( value:TextFormat ):void
		{
			_defaultTextFormat = value;
		}
		
		public function get defaultDisabledTextFormat():TextFormat
		{
			return _defaultDisabledTextFormat;
		}
		public function set defaultDisabledTextFormat( value:TextFormat ):void
		{
			_defaultDisabledTextFormat = value;
		}
		
		public function get embedFonts():Boolean
		{
			return _embedFonts;
		}
		public function set embedFonts( value:Boolean ):void
		{
			_embedFonts = value;
		}
		
		public function get paddingLeft():Number
		{
			return _paddingLeft;
		}
		public function set paddingLeft( value:Number ):void
		{
			_paddingLeft = value;
		}
		
		public function get paddingRight():Number
		{
			return _paddingRight;
		}
		public function set paddingRight( value:Number ):void
		{
			_paddingRight = value;
		}
		
		protected override function init():void
		{
			super.init();
			
			_textFormat = new TextFormat( "_sans", 11, 0x000000, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0 );
			_disabledTextFormat = new TextFormat( "_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0 );
			_defaultTextFormat = new TextFormat( "_sans", 11, 0x000000, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0 );
			_defaultDisabledTextFormat = new TextFormat( "_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0 );
		}
		
	}
}